<?php 
include("conexion.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Buscar usuarios</title>
<style type="text/css">
<!--
.Estilo1 {
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}
.Estilo4 {font-size: 12px; font-weight: bold; }
.Estilo10 {font-size: 14px; font-weight: bold; }
.Estilo16 {
	color: #000000;
	font-style: italic;
	font-weight: bold;
}
.Estilo18 {font-size: 14px; font-weight: bold; color: #000000; font-style: italic; }
body {
	background-image: url();
	background-repeat: no-repeat;
}
.Estilo19 {font-size: 16px; font-weight: bold; color: #FFFFFF; }
.Estilo20 {font-size: 14px; font-weight: bold; color: #FFFFFF; }
.Estilo21 {color: #000000}
-->
</style>
</head>
<body>
<div align="center">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Inicio.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Inicio.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Clientes.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Clientes.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="BGCOLOR" value="#FFFFFF" />
    <param name="movie" value="Productos.swf" />
    <param name="quality" value="high" />
    <embed src="Productos.swf" width="111" height="40" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#FFFFFF" ></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Catalogo.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Catalogo.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="40">
    <param name="movie" value="nuestraempresa.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="nuestraempresa.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="40">
    <param name="movie" value="resgistrarse.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="resgistrarse.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="40" bgcolor="#FFFFFF"></embed>
  </object>
</div>
<p>&nbsp;</p>

<table width="814" style="border:1px" align="center">
  <tr>
    <td colspan="7" bgcolor="#CCCCCC"><div align="center" class="Estilo1">| TABLA | PRODUCTOS | BUSCADOR |</div></td>
  </tr>
  <tr>
    <td height="49" colspan="5" class="Estilo4"><div align="right" class="Estilo19">
      <div align="center" class="Estilo21">
        <div align="right"><img src="img/search_2.png" width="18" height="20" align="baseline" /> Buscar:  </div>
      </div>
    </div></td>
    <td height="49" class="Estilo4"><form action="buscar_usuarios.php" method="post" name="form1" id="form1">
      <div align="center">
        <input name="u" type="text" id="u" />
      </div>
      <label> </label>
      <div align="center">
        <input type="submit" name="Submit" value="Buscar" />
      </div>
    </form>
    <label></label></td>
  </tr>
  <tr class="Estilo4">
    <td width="28" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">ID</div>
    </div></td>
    <td width="137" colspan="-6" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">NOMBRE</div>
    </div></td>
    <td width="184" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">APELLIDO PATERNO </div>
    </div></td>
    <td width="180" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">APELLIDO MATERNO </div>
    </div></td>
    <td width="118" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">CORREO</div>
    </div></td>
    <td bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo20">
      <div align="center">PASSWORD</div>
    </div></td>
  </tr>

<!-- DECLARACION DE FILAS POR CADA REGUSTRO EN LA TABLA PRODUCTOS-->
<?php 
$consulta=mysql_query("select * from usuarios",$conexion);
while($mostrar=mysql_fetch_array($consulta)){
//$id=$mostra4['id']; PONER VARIABLES POR CADA ELEMENTO DEL ARREGLO "MOSTRAR"
$agregarlo="<a href='carrito.php?id=$mostrar[id_usuario]'>AGREGARLO</a>";
$color=$mostrar['id_usuario'];
	if($color %2 ==1){
		$color="#9933CC";}
	else{
		$color="#CCFF00";}
?>
  <?php /*?><tr class="Estilo4" bgcolor="<?php echo $color;?>"><?php */?>
   <td class="Estilo4"><div align="center" class="Estilo10 Estilo16">
     <div align="center"><?php echo $mostrar['id_usuario']?></div>
   </div></td>
   <td class="Estilo4"><div align="center" class="Estilo18">
     <div align="center"><?php echo $mostrar['nombre_usuario']?></div>
   </div></td>
   <td class="Estilo4"><div align="center" class="Estilo18">
     <div align="center"><?php echo $mostrar['apellido_paterno']?></div>
   </div></td>
   <td class="Estilo4"><div align="center" class="Estilo18">
     <div align="center"><?php echo $mostrar['apellido_materno']?></div>
   </div></td>
   <td class="Estilo4"><div align="center" class="Estilo18">
     <div align="center"><?php echo $mostrar['correo_usuario']?></div>
   </div></td>
   <td class="Estilo4"><div align="center" class="Estilo18">
     <div align="center"><?php echo $mostrar['contrasena_usuario']?></div>
   </div></td>
  </tr>
  <?php 
  }
  ?>
</table>
</body>
</html>